<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Vote
 * @copyright  Copyright 2011 KEENONWEB LLC
 * @license    http://www.keenonweb.com/
 * @version    $Id: index.tpl 2011-03-09 01:11:30 idris $
 * @author     Idris
 */
?>

<div id='profile_status' class="voting-profile-status">

  <h2>
    
    <div class="status">
      <?php echo $this->subject->getTitle(); ?>
    </div>
    
    <?php if ($this->subject->isStarted()): ?>
      <?php
        $label = $this->translate('ACTIVE');
        $class = 'active';
      ?>
    <?php elseif ($this->subject->isFinished() || $this->subject->is_finished): ?>
      <?php
        $label = $this->translate('FINISHED');
        $class = 'finished';
      ?>
    <?php else: ?>
      <?php
        $label = $this->translate('UPCOMING');
        $class = 'upcoming';
      ?>
    <?php endif; ?>
    
    <div class="voting-status <?php echo $class; ?>"><?php echo $label; ?></div>
    <div class="clr"></div>
  </h2>

</div>